import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;

class Imagem extends JLabel implements TableCellRenderer{  
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public Imagem(){  
      setOpaque(true);  
    }  
      
    public Component getTableCellRendererComponent(JTable table,   
       Object value, boolean isSelected, boolean hasFocus, int row,   
       int column){  
        
       Icon imagem = new ImageIcon("images/ok.jpg");  
             
       if(isSelected)  
         setBackground(table.getSelectionBackground());  
       else  
         setBackground(table.getBackground());          
         
       setIcon(imagem);  
       setText(value.toString());  
            
       return this;         
    }  
      
    public void validate() {}  
    public void revalidate() {}  
    protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {}  
    public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) {}    
  }  